From: Daniel van Vugt Date: Fri, 2 Oct 2020 08:33:31 +0000 (+0800) Subject: windowManager: Avoid calling meta_window_actor_thaw when not frozen X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~796 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6ba3ca5f9548ba0a87a9e3ffa129716d0a062e1e;p=gnome-shell.git windowManager: Avoid calling meta_window_actor_thaw when not frozen Because that tends to crash in: ``` g_error ("Error in freeze/thaw accounting"); ``` Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1431 https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1453 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index ab86a2e6a..91b764ea8 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -1378,6 +1378,10 @@ var WindowManager = class { onStopped: () => this._sizeChangeWindowDone(shellwm, actor), }); + // ease didn't animate and cleared the info, we are done + if (!actor.__animationInfo) + return; + // Now unfreeze actor updates, to get it to the new size. // It's important that we don't wait until the animation is completed to // do this, otherwise our scale will be applied to the old texture size.